// GJCollection_BPA.cpp: implementation of the CGJCollection_BPA class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "../../Include/Swi/GJCollection_BPA.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CGJCollection_BPA::CGJCollection_BPA()
{

}

CGJCollection_BPA::~CGJCollection_BPA()
{

}

CGJ_BPA* CGJCollection_BPA::GetFirstGJ()
{
	return (CGJ_BPA*)CCardCollection_BPA::GetFirstCard();
}

CGJ_BPA* CGJCollection_BPA::Traverse(CGJ_BPA *pGJ, int nDirection)
{
	return (CGJ_BPA*)CCardCollection_BPA::Traverse(pGJ,nDirection);
}

CGJ_BPA* CGJCollection_BPA::GetGJ(char *strBusName, double dkV, char nID)
{
	CGJ_BPA tempGJ;
	strcpy(tempGJ.m_strName,strBusName);
	tempGJ.m_dkV = dkV;
	tempGJ.m_chID = nID;
	return (CGJ_BPA*)CCardCollection_BPA::GetCard(&tempGJ);
}